import Mock from 'mockjs'

function shu() {
    let data=[];
    const Random=Mock.Random;
    for(let i=0;i<6;i++){
        let user={
            img:Random.image(),
            price:Random.natural(60,300),
            name:Random.cword(4,7),
            data:Random.date("yyyy-MM-dd"),
            address:Mock.mock("@city(true)")
        };
        data.push(user);
    }

    return data;
}
 Mock.mock('/api/getData','get',shu)